﻿using System;
using FlyWebFrame.Model;

namespace FlyWebFrame.Action.admin
{
    public class deletepartner : baseaction
    {
        public override void Treat()
        {
            int Id;
            if (!Int32.TryParse(GetParameter(0), out Id))
            {
                Redirect("/admin/partners");
            }
            News news = new News();
            news.id = Id;
            news.Delete();

            Redirect("/admin/partners");
        }
    }
}